/*
 * GraphIOModule.h
 *
 *  Created on: 03-06-2012
 *      Author: Jakub Chomentowski
 */

#include "GraphDescriptor.h"
#include <string>
#include <iostream>
#include <json/json.h>
#include <stdio.h>

#ifndef GRAPHIOMODULE_H_
#define GRAPHIOMODULE_H_

#define SUCCESS		0
#define ERROR		1
#define TEST_FILE	2


class GraphIoModule
{
	public:
		void read(GraphDescriptor &descriptor, std::string path);
		void write(GraphDescriptor &descriptor, std::string path, int result);

	private:
		Json::Reader reader;
		Json::StyledWriter writer;
};



#endif /* GRAPHIOMODULE_H_ */
